<?php
namespace app\admin\controller;
use app\common\model\Admin;
use think\Controller;
use think\Db;

class Index extends Common
{
	
	public function index()
	{
		return $this->fetch();
	}

	public function welcome()
	{
		$tie = Db::name('question')->cache(true,3600)->count();
		$reply = Db::name('reply')->cache(true,3600)->count();
		$user = Db::name('user')->cache(true,3600)->count();

		return $this->fetch('',[
			'tie'=>$tie,
			'reply'=>$reply,
			'user'=>$user
		]);
	}
}